﻿/*
Commerce by Onex – eCommerce software platform (www.ecommerce.byonex.com)
Copyright (C) 2008-2010 by Onex Group

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
 */
using System;
using System.Collections.Generic;
using System.Text;

namespace ShopModel
{
    /// <summary>
    /// Klasa przechowuje informacje o adresie przesyłki.
    /// (Class stores information about the shipment address.)
    /// </summary>
    [Serializable]
    public class RealizationAdress
    {
        #region Variables

        string _FirstName;
        string _LastName;
        string _City;
        string _Street;
        string _ZipCode;
        string _Country;
        int _CountryID;
        string _Email;
        int _ID;
        string _Phone;

        #endregion Variables

        #region Constructors

        public RealizationAdress() { }

        #endregion Constructors

        #region Fields

        public string FirstName
        {
            get { return _FirstName; }
            set { _FirstName = value; }
        }

        public string LastName
        {
            get { return _LastName; }
            set { _LastName = value; }
        }

        public string City
        {
            get { return _City; }
            set { _City = value; }
        }

        public string Street
        {
            get
            { return _Street.Trim('/'); }
            set { _Street = value; }
        }

        public string ZipCode
        {
            get { return _ZipCode; }
            set { _ZipCode = value; }
        }

        public string Country
        {
            get { return _Country; }
            set { _Country = value; }
        }

        public int CountryID
        {
            get { return _CountryID; }
            set { _CountryID = value; }
        }

        public string Email
        {
            get { return _Email; }
            set { _Email = value; }
        }

        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }

        public string Phone
        {
            get { return _Phone; }
            set { _Phone = value; }
        }

        #endregion Fields
    }
}
